package com.dingli.framework.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 贷款表
 */
@Data
@ApiModel("贷款表")
public class Loan {

    @ApiModelProperty("贷款ID")
    private Integer loanId;

    @ApiModelProperty("贷款人ID")
    private Integer userId;

    @ApiModelProperty("贷款金额")
    private double loanAmount;

    @ApiModelProperty("贷款日期")
    private Date loanDate;

    @ApiModelProperty("利率：信用卡未还金额-0.05%/日，借款利率-0.72%/月，贷款利率4.35%/年")
    private double interest;

    @ApiModelProperty("0-年，1-月，2-日")
    private Integer interestType;

    @ApiModelProperty("最后还款日")
    private Date lastRepayment;

    @ApiModelProperty("贷款状态：0-待还，1-已还，-1-逾期")
    private Integer loanStatus;

    @ApiModelProperty("账单ID：null为贷款，非null为信用卡未还部分转贷")
    private Integer billId;


}
